cmake_minimum_required(VERSION 3.3)
project(firstClion)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")
include_directories("D:\\ClionProject\\ffmpeg\\include")
link_directories("D:\\ClionProject\\ffmpeg\\libs")
set(SOURCE_FILES main.cpp)

add_executable(firstClion ${SOURCE_FILES})

set(TARGET_LIB

        "D:\\ClionProject\\ffmpeg\\libs\\avutil-55.dll"
        "D:\\ClionProject\\ffmpeg\\libs\\avcodec-57.dll"
        "D:\\ClionProject\\ffmpeg\\libs\\avdevice-57.dll"
        "D:\\ClionProject\\ffmpeg\\libs\\avformat-57.dll"
        "D:\\ClionProject\\ffmpeg\\libs\\avfilter-6.dll"
        "D:\\ClionProject\\ffmpeg\\libs\\swscale-4.dll"
        "D:\\ClionProject\\ffmpeg\\libs\\swresample-2.dll"
        "D:\\ClionProject\\ffmpeg\\libs\\postproc-54.dll"

        "D:\\ClionProject\\ffmpeg\\libs\\avutil.lib"
        "D:\\ClionProject\\ffmpeg\\libs\\avcodec.lib"
        "D:\\ClionProject\\ffmpeg\\libs\\avdevice.lib"
        "D:\\ClionProject\\ffmpeg\\libs\\avformat.lib"
        "D:\\ClionProject\\ffmpeg\\libs\\avfilter.lib"
        "D:\\ClionProject\\ffmpeg\\libs\\swscale.lib"
        "D:\\ClionProject\\ffmpeg\\libs\\swresample.lib"
        "D:\\ClionProject\\ffmpeg\\libs\\postproc.lib"
        )


target_link_libraries(firstClion ${TARGET_LIB})